package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 机构表对象 tb_institution
 * 
 * @author ruoyi
 * @date 2025-02-18
 */
public class TbInstitution extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 机构代码 */
    private String institutionCode;

    /** 机构名称 */
    @Excel(name = "机构名称")
    private String institutionName;

    /** 地区编码 */
    @Excel(name = "地区编码")
    private String areaCode;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String areaName;

    /** 机构层级(0-顶级结构，依次类推) */
    @Excel(name = "机构层级(0-顶级结构，依次类推)")
    private String institutionLevel;

    /** 上级机构 */
    @Excel(name = "上级机构")
    private String parentCode;

    public void setInstitutionCode(String institutionCode) 
    {
        this.institutionCode = institutionCode;
    }

    public String getInstitutionCode() 
    {
        return institutionCode;
    }
    public void setInstitutionName(String institutionName) 
    {
        this.institutionName = institutionName;
    }

    public String getInstitutionName() 
    {
        return institutionName;
    }
    public void setAreaCode(String areaCode) 
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode() 
    {
        return areaCode;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setInstitutionLevel(String institutionLevel) 
    {
        this.institutionLevel = institutionLevel;
    }

    public String getInstitutionLevel() 
    {
        return institutionLevel;
    }
    public void setParentCode(String parentCode) 
    {
        this.parentCode = parentCode;
    }

    public String getParentCode() 
    {
        return parentCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("institutionCode", getInstitutionCode())
            .append("institutionName", getInstitutionName())
            .append("areaCode", getAreaCode())
            .append("areaName", getAreaName())
            .append("institutionLevel", getInstitutionLevel())
            .append("parentCode", getParentCode())
            .append("remark", getRemark())
            .toString();
    }
}
